<div class="modal-body">
    <div class="container-fluid form-horizontal ">
      <div class="panel panel-info form-horizontal">
		<div class="panel-heading ">
			给产品配置优惠券
		</div>
		<div class="panel-body">
			<div class="container-fluid">
				<div class="  wrapper-md ng-scope" style="text-align: center">
                    <h1 class="m-n font-thin h3 ng-binding">添加/编辑优惠券</h1>
                </div>

                <div class="form-group">
                    <label class="control-label col-sm-offset-2 col-sm-2">优惠券名称</label>
                    <div class="col-sm-4" ng-disabled="flag == 'undefined'">
                        <ui-select ng-model="searchform" theme="bootstrap" ng-change="change(searchform)" ng-disabled="flag == 'edit'">
                            <ui-select-match placeholder="请选择优惠券名称">
                                {{$select.selected.name}}
                            </ui-select-match>
                            <ui-select-choices repeat="namelist as namelist in namearr | filter: $select.search" ng-disabled="flag == 'edit'">
                                <span ng-bind-html="namelist.name | highlight: $select.search"></span>
                            </ui-select-choices>
                        </ui-select>
                    </div>
                </div>
                <div class="form-group" >
                    <label class="control-label col-sm-offset-2 col-sm-2">优惠券种类</label>
                    <div class="col-sm-4">
                        <ui-select ng-model="info.type" theme="bootstrap" >
                            <ui-select-match placeholder="请选择优惠券种类">
                                {{$select.selected.type_name}}
                            </ui-select-match>
                            <ui-select-choices repeat="typelist.id as typelist in typearr | filter: $select.search">
                                <span ng-bind-html="typelist.type_name | highlight: $select.search"></span>
                            </ui-select-choices>
                        </ui-select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-sm-offset-2 col-sm-2">优惠券规则</label>
                    <div class="col-sm-4">
                         <ui-select ng-model="info.rule" theme="bootstrap">
                            <ui-select-match placeholder="请选择优惠券规则">
                                {{$select.selected.rule_name}}
                            </ui-select-match>
                            <ui-select-choices repeat="rulelist.id as rulelist in rulearr | filter: $select.search">
                                <span ng-bind-html="rulelist.rule_name | highlight: $select.search"></span>
                            </ui-select-choices>
                        </ui-select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-sm-offset-2 col-sm-2">价格</label>
                    <div class="col-sm-4">
                         <input type="number" class="form-control" ng-model="info.money" placeholder="优惠券金额" disabled>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-sm-offset-2 col-sm-2">描述</label>
                    <div class="col-sm-4">
                        <textarea rows="6" class="form-control" ng-model="info.description" placeholder="优惠券描述"></textarea>
                         <!-- <input type="text" class="form-control" ng-model="info.description" placeholder="优惠券描述" disabled> -->
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-sm-offset-2 col-sm-2">有效期始</label>
                    <div class="col-sm-4">
                         <div class="input-group" datetimepicker ng-model="vm.date" options="vm.options">
                            <input class="form-control"/>
                            <span class="input-group-addon">
                                <span class="glyphicon glyphicon-calendar"></span>
                            </span>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-sm-offset-2 col-sm-2">有限期止</label>
                    <div class="col-sm-4">
                         <div class="input-group" datetimepicker ng-model="vm1.date" options="vm1.options">
                            <input class="form-control"/>
                            <span class="input-group-addon">
                                <span class="glyphicon glyphicon-calendar"></span>
                            </span>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-4 col-sm-4">
                        <button class="btn btn-success " ng-click="save()" style="width:100px">保存</button>
                    </div>
                </div>
                

                



